home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
s
/
sfxv3.03crackreg.lha
/
sfx
/
Rexx
/
RemQuantNoise.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-07-18
|
965b
|
50 lines
/* SFX Arexxtester */
OPTIONS RESULTS
ADDRESS REXX_SFX
SetFXParam 'FX_OctaveDown' 'Interpolate' '1'
SetFXParam 'FX_OctaveUp' 'Interpolate' '1'
GetActiveBuffer
buf2=RESULT
IF buf2<9999 THEN DO
FX_OctaveDown buf2
IF RC~=0 THEN CALL AppError('FX_OcatevDown',RC)
ELSE buf1=RESULT
FX_OctaveUp buf1
IF RC~=0 THEN CALL AppError('FX_OcatevUp',RC)
ELSE buf2=RESULT
RemoveBuffer buf1
FX_OctaveDown buf2
IF RC~=0 THEN CALL AppError('FX_OcatevDown',RC)
ELSE buf1=RESULT
RemoveBuffer buf2
FX_OctaveUp buf1
IF RC~=0 THEN CALL AppError('FX_OcatevUp',RC)
ELSE buf2=RESULT
RemoveBuffer buf1
SetActiveBuffer buf2
END
ActivateSFX /* fertig */
EXIT
AppError:PROCEDURE
cmd=arg(1)
ret=arg(2)
SAY '
Application Error
';say
SAY 'Command 'cmd' failed with Returncode 'ret
SELECT
WHEN ret='1' THEN SAY ' => unknown command'
WHEN ret='2' THEN SAY ' => unknown parameter'
OTHERWISE SAY ' => unknown returncode'
END
SAY
RETURN